fix Snake bug