corrected comparisson which had accidentally chaned in previous fixes