fix nmml detection