Fix sourcing of z