fix NaN in surface & ideal sliding