fix admin dashboard crash