修掉顶和底更新错误的bug,