Corrected issue with documents not getting properly styles with a theme