fixing parsing bug in constructors.