fixed check for listener interface class