fixed error loading servlet if no directory