Thanks Jimmy, unfortunatley I have deleted this saved the document and tried re-opening it in infopath but it will still not allow me to open design mode, it gives me this error:
The form definition (.xsf) file contains elements, attributes, or structures that are not valid.
Error details:
The keyref ...