Fixed bug where messages in the root tasks folder were getting the prefix of the last sub-folder to be processed