Empty group name lead to broken header: Fixed writing of header