fix editability check