Corrected mistakes in block controller