fix weeknum code