correctly capture closed bugs