bugfixes for webkit browsers