fixed a border bug