Fix bug in Simplex