fixed Screen.resize bug