fixed headroom bug