fixed off-by-one error (a bug that migrated from moment-fridays codebase!)