added patch for issue #2