fixed no action if there's no params