Check that the block is being set to a valid ID before doing it