Fixed error in firefox with history variable.