Fixed bug in attributes