Continue fixing up the bugs on receive data from php