bug fix for tomcat

bug fix for tomcat