The correlation of UHECRs with nearby galaxies in the Local Volume