Fixed incorrect code due to last commit

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