bugfix for mate call