Fix for flask bug at end
Project