Fix level bounds and seeking code