fix PathGraph updating
fix boundbox
refactor ViewPort.Update