Fix curly brace bug