Fixed exception arisen with highlighter component when going back to menu (fixed #219). Also fixed #218.