fixed bug in SlopeTo