Fixed some function about admin