Most likely you over-worked your mashed potatoes and/or they are too waterlogged. Causing for that gluey reaction.