fix flaskr, test ok