Fixed bug - fields within groups were not being exported correctly.