fix bug in webapp add