Fix formula for the locations of faces and edges