flask theme bug fix