Fixed flask startup