Fixed errors in PathGrid