Fix POST query bug