Fix a bug when interval command was executed at start