fixing null error printing 1:1 relationships