fix time limit bug