fixed wrong params passed to action functions