Fixed referring to associated objects

Signed-off-by: Søren Ranneries <sranne12@student.aau.dk>