Fixed bug in web-view creation