infinite reinforcement bug fix