fix for dir