This typically happens when you have over mashed the potatoes. Overworking the potatoes will result in a gluey texture, so you want to be careful when adding in the cream and seasoning that you don't mash too much.