Fixed bug where block would remain selected after an invalid block is
pressed