More hotfixes for anon users & ldetect