fixed bug where returned results would not be returned