fix fatal class redeclare