Fix wrong filter when loading data by id.