fix rank changing performance and position filter bug