Fix If statement