fix a problem with mkdir