fixed lua error on timer and more