bug fix: replaced param.captures with param[:captures]