fixing issues with the addproperty in designer.js