fixed bug for promting int to float for params.