Prevent headers to be sent twice