Wrong checking breaks the plugin
remove debug code