Remove debug code
Fixed clearing of result list