Fix generated if checks for i