bug fixing for analyze for filtered datasets