fixed editing while encrypted