fixed shelter bug