Oh, in fact, I think you may need to update your RPG Maker MZ Core codes. Open the editor > Game > Update Corescript