Replace constructor.true with type = 'Constructor'