Fix level_buffer pointer