fix level switching. If level does not exists switch to first