fixed reloading issues with tomcat.