Fixes an odd bug with webkit based browsers