Updated Foreground attribute name to support iOS8