Slight performance modification to fix-in-place chapter navigation code