fixed snake bug