LPS-48453 Fix logic

cc/ @ealonso