fixed extra } bug