fixed return value of findOneBySql