Overlay part2: fix overlay regarding height overlay issues