correct the behavior for an incorrect entry in the melody field