Fixed sending events when using Sinatra 1.4