fixed bug with some attributes