fixed orientation changed problem. submitted by alex lee.

Signed-off-by: Michael henry Pantaleon <michaelhenry119@yahoo.com.ph>