fix setting public dir