fix name lookup in class scope