fix params overwriting