prevent nil headers