fixed param index error