fixed dir reference issue