fix error with self
prevent crash on empty parameters call