Bugfix in the monster_check() function