fix various bugs on admin/xxx feature