bug fix https://github.com/thymeleaf/thymeleaf/issues/145