Fixed get_called_class scope