fix post endpoint