fix date objs in aggregate queries