Fixed bug in webapp