document rendering bug fixed