bug fix in relation management

Signed-off-by: Andreas Zöllner <andi@go-for-fun.de>