fix close curly brace not matching properly