handle pan fix