fix hearbeat