fix setTimeout() related error