Fix selection filter bug