bug fix for empty params