remove useless operation and fix typo