apply patch for issue 99 [os x]