Corrected null input upon directory change.