set global transform correctly