fixed a bug in providers_controller#events