Possible workaround for some PHP bug