adds missing closing }