device orientation bug fixed