fixed crash when rotating the interface without having a shadow path