Sleeping on the ground is not normal for a treefrog. It may or may not be gastrointestinal parasites. Whats the current humidity level & temperature of the enclosure?