QueryBuild fix findOneById issue