fix update() in firefox