Fix slopetriangle issue mentioned in #79