Fixed an ugly mean ol' bug in the terrain smoother