Fixes admin error handling