Fix cannot get layout path on default template