fix issue on rotate screen