Fixed bugs that were allowing the plugin to display incorrectly