Fix wrong use of setLocatorExpression