Temperature and magnetic field dependence of the critical current density of YBCO with fine grains