Fix stalling due to invalid guard expression