Change expression from 'directory' to 'present'
fixed bug