fixed #361. where data wasn't being returned.