Fixed infinite loop when modifying hearts