[FIX] remove the assert because the type can be None in some case, this check is useless