prettyprinting fix for secondary constructors