fixed graph script