Fixing inhabitant insert issue