fixes a keyboard nav bug