Fixed a bug deleting tabs by number

latest commit 2eff0b939f
@JeffHoogland authored