fix bugs for recognition

Signed-off-by: Haley <B51762@freescale.com>