You may have overcooked and / or overstirred the potatoes. Next time, cook them for a few minutes less or stir less for best results.