bugfix selection not switching when creating new table