Fix: parameter index is wrong for Squirrel functions