Fix script compiling errors due to core update.