US stocks open higher, recovering from previous losses