Fix arguments bug, pass arguments to json file