fix crash after home pressed