fixed directory display/paint issue