fixed bug in params printing