[web] Fix two silly bugs caused by last commit