fixed error on old if: