fixes unit test error in smooth