fix wrong usage of assert()
Signed-off-by: Sho Nakatani <lay.sakura@gmail.com>