Fixes Tomcat 8 compatibility.