Direction selection bug fix.