fix template with no messeages in queue