added fixes to round_weeks to because the normal way of accessing data.table variables wasn't working.