Fixing the issue on namespaced models.