Fixed a bug in get_result