Fixed wrong relation string being output.