remove flask babel configure and correct error