fixed graph error