Fix directory resource