Fixed the hex selection bug.