fixed the secondary cursor positioning