range_filter: fix a bug that error message isn't shown