Fix Rest structured directory.