bug fix regarding param passing