fixed gapped problem