fix script rendering