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

Fixed Issue 145