fixing a bug with object style typdefs