Fixed stdclass issue