Fix problem where replacing boxes with != entity HP's caused issues.