[backend] fix verify_attributes function