Fixed a fatal error when creating new instance on php 5.3.3