fix escaping of model bundle
don't emit model events on before route cleanup