Fixed method for updating pet coins. Close #247