fixed the safari and ie bug