fixes an uncaught excption (if a directory isn't found)