Little fix for use generateadminclass on Listclass