Fix z scaling processing
Fix z scaling processing