fix ORIGN check is opposite