Fix invalid guard expression