fix plugin check method