Fixing typeExists problems