Fix ff and ie bug