bug-fix: deferred status

- fix resolved status handlins
- fix use of twig var in string comparisons