fix bug when admin