fix redeclare class and registration FB