Fix missing end brackets

Closing brackets were missing from Eric's change