Removing unintentional double-set of attribute