Makes sure retable is set if not given as an arg