Fixed the filtered length check issue to keep the plugin chainable.