fix redeclare class