Fix missing error check.