fixing stdClass missing error - dangit