Fix #210 readonly problem