fix bug causing limited size array for coin return