Added a missing else statement