fixed error on attributes