small fix for unexisting attribute and strange assert