Add missing conditional end