Fixes a variety of bugs on admin.