Fixed bug for tempData
Edges fixed