We numerically and experimentally investigate dependence of quality factor Q of photonic crystal H1-defect nanocavity on the slab thickness and demonstrate an increase of Q after closing of the photonic bandgap. This counter intuitive behavior results from the weak coupling between the cavity mode and the 2nd- guided mode.