Fixed a bug with updating page content