Added exception if filter returns wrong paths