fix sql for directory tagcloud