Fix some bugs

- AddAdminHandler bug
- setting configuration