fixed error where documents returned null if NOT IN was null