The foreign secretary has written to the Environment Agency to tell them about the error, and has now bought a licence.