bug in params