fixed pause game bug