fixing random directory