Fix level detection