fix bug on attr|= (fix #47)