fix: incorrect attr checked