Peak effect and its disappearance in YBCO superconducting crystals