Fixing get_called_class optimizer