correct normalizaton of z-offset for converted templates