Fix for mismatched brackets