fixed minor bug with param