fixed issue with return values in relation