bugfix: headers could not be set