Call flush on application created