LPS-32269 if statement always false