Fix misinterpeted return code