fix issue on safari