Fixes a bug with lists in backend.