fix runtime error.

make sure we raise here.