Fix level parsing bugs.