fix file bottom and top
Merge pull request #149 from linab/3.0

fix file bottom and top