small bugfix (div by zero) in webapplication