fix } missing bug