guard against shifting by None days which causes failure