bug fix 1. order of params in header