Fix #1305

Remove bottom border where needed.