bugs fixing in concurrent tasks execution