Fix categories switch using jquery in admin.