Takeoff overshoot

In testing HIL mode Quadrocopter X, I’ve found that takeoff tends to overshoot the specified takeoff altitude by quite a lot, like 5 meters becomes 15 then it comes back down. My real drone does something similar. Is this a known issue, and is there a way to “tune” my parameters so this doesn’t happen? I mean I understand the need to get off the ground and not bounce, and that takes extra throttle, but I’d expect that to settle down quickly and not overshoot a 5 meter altitude target.