coin bug fix