fix enterFrame