fixed a bug with the edit path