Fix formatting. Space after if, and brackets always. Same is true for lines 937 and 946 below