Fix unbalanced bracket, closes #45