fixed bug with a missing }