Fixed an error where the graphs for the week and month were not being drawn properly