Fix the bugs of to show the border