fix php5.3 do not direct access to created instance.