Fix the wrong type assign to the watch command