Fixed bug in web compile