LPub doesn't account for step that doesn't contain a part change. To return model to "normal" orientation in the last step, just add a dummy buffer exchange before the rotstep:
0 BUFEXCHG X STORE
0 BUFEXCHG X RETRIEVE
0 BUFEXCHG X STORE
0 BUFEXCHG X RETRIEVE