US stocks open higher, trying to recover from previous losses