Added a missing check.