Fixed #797
Removed stupid logging
Merge pull request #843 from dvvrd/fix797

Fixed #797