corrected a bug in web service