fix keyboard navigation bug