fixed the double posting bug