Fixed double if