Bug fix for locateCenterOnScreen() issue.