fix position of check of skip global