fixed some bugs related to /cd stop

Signed-off-by: Syberspace