daily collection query error fixed