Bug #1 - Added missing else directive