Fixed insertCoin method.