US stocks open higher, trying to recover from losses