fix some bugs
Merge pull request #67 from michaelnsj/create_admin

Merged.