Fix not cehcking for the result

Signed-off-by: Ian Macalinao <me@ian.pw>