fixed bug when device was face up