Fixed script so the icon resource is created.