fix return code

Signed-off-by: Clienthax <clienthax@gmail.com>