fix bug of setTimeout on Linux