fixed outputs assignment
Merge pull request #720 from chrisfilo/fix/refit

fixed outputs assignment