fixed bug where run survey returned nonetype