fixed for mavericks / ruby 2.0