fix read only caused by join