Minor modification for backward php compatibility (5.3+)