Fix for dir reader