Fixed typo which cause the plugin won't start correctly
Fixed return value