Fixed shortest path rendering error and add and delete modal errors