remove extensions that don't exist