fixed writability check