fix layout template wrong variable