fixed graph generation file