Fixed error on display get z function