fix getWeeks bug