fixed issue with proximity weekly graph code