Changed setInternal to use convertInternal when settin attributes