Fix timeline queries