fix #1885 rest api in admin