patch by SPROUT to fix RT #79127
Merge pull request #4 from eserte/RT79127

patch by SPROUT to fix RT #79127