Fix undefined POST errors