Fix block end formatting