fixing bug 988
Merge pull request #70 from jkammerl/bugfix988

fixing bug 988