fix post urls and attributes