fixed bug preventing more than one block from executing