fix infinit loop bug for up/down in execurstion only if one line match