fixed Marines throwing exception when reaching end of path