fixed bug with shift_cycle causing current cycle to be shifted forward in time instead of backwards