Fixed bug with `page` template in dev mode

Resolved #417