Bug of when filtering