fix fix_result method