fix for FF, IE