Wrong attribute bug fix