fix issue with page template in dev mode