Fix the problem caused by read-only properties