Fix wrong return type
Merge pull request #3470 from ussuri/small-fixes-3

Fix wrong return type