Fixed a bug to kill by pressing R when there is no tab