fix class scope