fixes bug with types with no fields