stdclass distribution fix