fix public dir setup.