fix wrong xl function in justify template