fix support for FF, IE