Fixed the empty deck bug