Fixed the plugin not compiling correctly.

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