Fixed bug with storing result coefficients

Result index wasn't a list like everything else; fixed.