Fix before and after type check

There was previously no way to get past these checks.