Fixed a bug where the FlexibleArray would remove the wrong listneer.