fixing if case