fixed appen_guard_1 to handle the case when the pats is empty, but there is a guard expression.