fixed order of post HTTP callback