work around invalid read scenario