Fixed a bug with constants in guards.