script class fix