fixed a block error that was missing a closing 'end'