Add missing end statement to providers