fixed a mac gem dependency issue and also corrected a html parsing bug
resolved merge conflict