fix bugs. check all existed programs - worked well!