Fixed flask server example.