Fix post method bug