trying to fix safari bug