Fixed incorrect if-statement.

Signed-off-by: Lucas Arnström <lucasarnstrom@gmail.com>