fix writeblock check bug