Fixed a bug in navmesh vertex cache