Revert "fixed web app bug."

This reverts commit c4bd7524b8e28593e9e77cd76e271d3ddc774c6b.
Revert "Revert "fixed web app bug.""

This reverts commit 6c2d113c8aa6e9fcba77bcd4d840bae6f5e4f35d.