fixed } bug