Fixed syntax as per ruby 1.8.7