fix typo and oversize problem.