fixed correct attributes

fixed for correct behaviour