fix pretty printer for inner relations