Fixed a display problem in webapi view scripts

Change-Id: Iaf73d745a32853d2905f38cfb1d03df07a598e3c