Fix a problem that doesn't work correctly on sinatra