fix ACT-2093 use x to replace y

Please see https://jira.codehaus.org/browse/ACT-2093.

 The first argument should be x, not y.