Fixed findOneBy method