Fixed bug where if was missing otherwise case