Fixed failing specs at php 5.3