Fixed some logic errors in the web app section