fixed crash #59, added case for newly generated coins