fixed the bottom-overrite bug