v.21.6Bug Fix

Fix typo in Memory tables implementation

Fix typo in implementation of Memory tables, this bug was introduced at #15127. Closes #24192. #24193 (张中南).