You're likely baking at too low heat, not removing excess moisture from the sweet potatoes, and/or crowding the pan.