Fixed issue with 'Z' value reset.