Fixed problem with missing directory