Fixes small bug with using a variable $block which doesn't exist.