osx zr function fix