fix bug in plugin/handler class selection