Fixed compile error
Merge pull request #836 from Niektory/master

Fixed compile error