bugfix for empty params