Fixed segfault when using Subset