Fixed bug in blocking