fixed flask twice-init-thingy