clash of clans - fix webkit type number bug