fixed errors in error and WAR