Fixed some bugs in exp mode