Fixed bug when a record is added to an empty sorted filtered array