fix compiler warnings in Simplex