fix gameplay bug