Bug fix

directory variable missing at one line