Use nextTick over setTimeout