remove invalid extension