Fix IE bugs in villagecreate