a bug in checking parameter id_name and clearing up error value