fix try catch in nextTick