fix '?' removal from pattern list