fixed an argument order issue in LDS