bug fix in export of resource plans.
Issue reported by John Bradshaw.