fixed problem with the safari version