fix read-only flag of structures