attr setting incorrect