Fix incorrect template resolution in LWRP