fix assets.init_app() error 'assets instance not bound to an application'