Invalid path?

There are cases when the tries to set 'Z' or 'M,0,0' which is invalid? this fixes that, but not the cause.