fix error where removing blocks from code didn't work