fixed safari/chrome issue