fixed wrong arguments index