Fix issue with dot notation in only/except functions