fix model bundle error handling