Fixed issue when custom headers values are not sent correctly