fix stupid empty directory problem