fix course xml builder for defined fields