fix z bias check

typo in code