fix site was crashing in mobile webkit