Fix for freezing root documents