fix for issues_140

I expect that this is exactly what you have found for issued 140