Fixing of formatting when ari is enabled