fixes problem with empty params