Fixing bugs in the admin panel