fix ems and sidebar