Fixes type checks.