Fixed regression when passing arguments to locked commands