Fixed issue where imporper header was being written for interested messages