Updated plugin to fix parse_params