Fixes to z positions when moving.