United had let slip two leads at Old Trafford before captain Fernandes kept his cool to earn a much-needed victory.