callback fix for headers