fix post method params is nil