fixed a bug in blocking.