change `_.remove` to `filter` due to fail tests at travis

Signed-off-by: TZ <atian25@qq.com>