Fixed bug in @@exited template