fix bug caused by block (revealing another probably-a-bug in the process)