fix spec structure.