fix curly brace mismatch