Fixes an object type