Fix POST handling