remove readonly, fix undomanager