fix IE and ff bugs