resolved upward selection bug