fixed bug for redeclare function name.