the only thing that I can think of, after reviewing your code, is that it's taking more than 1/2 a second to process the aliases stillafk and dur. This can happen if you have more than one script trying to process at the same time (especially if you have lots of them).

Does this still happen if you try it with just this one script loaded?