fix redeclare error