Solved problem with variables on relation calls.