fixed graph generation in firefox