fixes sunset query