Fixed #568 Site error on publishing pdf