When the player attacking a villager with in village, the iron golem will hostile toward the player, but when the iron golem at far away from the player, the golem will not hostile to player. The village's reputation seems not working.