Fix function brackets in new line issue