fix params building