Fix logic for add post data bag