Fix bug with directory size