Fixed the error for plugin