Fix bug in laser-mode z-adjust