param attrs bug fix