reset tab status on clear (fixes #1)