I think you might be misunderstanding what the RTH Altitude setting does. It sounds like you're thinking it prevents the drone from flying higher than the RTH Altitude once it starts returning home, but that's not the case, as mentioned above.
The RTH Altitude setting works properly at night...