fix window offset bug for right window which was shifted 1 right because of open bed interval