fix mail command bug