Fix applying filter to show_edit_model output

Fix #2384