Change double close on md command