fixed the double deck bug