fixed bug caused by missing brackets