fixed the bug with double post