fix collapse & expand frature bugs while "canWrite" set to false