bug fix: check if timer container is defined