Fix updating directions