fixed bug in attrs