Core: Fix doubled script assignment