US market opens higher to recover from losses