Fix a problem with HOME END mapping.