Fixed a bug with reset game