Fix bug when recovering namespaced models