Fixing bad IF