fixed bug; constant instead of a class member