Update swich_block - make it works with Ruby 1.8.7