Lions beat Vikings 34-24