fix a bug in webapp example