Fix plugin initialization error

Fixes #5