fixed bug with closing }