bug fixed for the addData php