fix bug, support auto reload