fix safari pause bug