bugfix: temporal z function