fix addBlock function