LM: Fix slope generation to prevent terraces appearing