fixed BIG bug with ajax payload