fix for dir ref