fix slap infinite loop