fixed problem with mkdir