fixed some mouse-picking logic