Fix lambda expression logic problem

Signed-off-by: Time Su <lsu@redhat.com>