Fix the bottom overflow problem