Small bugfix in finding warning template