activity graph direction fix