fix bug with graph in FF