fixed older php issues.