Core/Scripting: Fix warning