Fix return correct relation when not using configuration file