Fix dirty directory