Fixed bug in missing dir