fixed issue with default attributes values for primitives