fix bug with directory referencing