Suspect I've also stuffed up here. The actual fix is probably in the represented function.