fixed error that would prevent admin page from displaying properly