fixed defect for find_by_param