Fixed a bug with posz