history is a local variable. Be careful. Probs detected in firefox.