add new em, fixed bugs.