Fixed html output for locked pages in contents