bug fixes in params