Added check for size of prefixes to be deleted

Assertion error @ prefixRemove