Root Document Bug Fix