fixed getScreenSize bug