Set Home Location

When I try to set the home location using QGC with PX4, it displays the AMSL altitude. Additionally, the ‘set home’ service is not working properly, even when I provide the AMSL altitude. Any advice on how to resolve this issue?