Fixes a bug with folders in the list ui