Fix #419

Pages regression caused by 22db3ad20a42c6779fc794bdaf6563c966759d51.