fix a return value bug 2