try to fix tomcat 7 support