Little fix on webkit function