fixing an issue with dice html parsing