queryHelpers.position query fix for missing endDate