fixed the clean function for model admin.