fix some bugs of admin