Handle result projections correctly

courtesy of phjardas. closes #31